export default {
    state: {
        productShowState: false,           //弹窗层
        productArgs: {}
    },
    mutations: {
        changeProductState(state, list) {
            if (state.productShowState == true) {
                state.productShowState = false;
            } else {
                state.productShowState = true;
            }
            //产品参数
            if (list != undefined) {
                state.productArgs = list;
            }
        }
    },
    actions: {
        changeProducStateActions: function (dis, list) {
            dis.commit('changeProductState', list);
        }
    },
    // getters相当于state的computed
    getters: {
        productShowStateGetters: state => state.productShowState
    }
}